package xyz.zhzby.cyzx.com.mapper;

import xyz.zhzby.cyzx.com.dto.request.DiscussionPageRequest;
import xyz.zhzby.cyzx.com.dto.response.DiscussionResponse;
import xyz.zhzby.cyzx.com.entity.Discussion;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 评论/回复 Mapper 接口
 * </p>
 *
 * @author zby
 * @since 2022-02-15
 */
public interface DiscussionMapper extends BaseMapper<Discussion> {

    List<DiscussionResponse> getDiscussionListByParentId(Long parentId);

    List<DiscussionResponse> getDiscussionList(DiscussionPageRequest discussionPageRequest);

}
